import { General, Authority } from '../request'

const { post, get } = General

// 通过租户标识查租户Id
export const getTenantId = data => post('/organization/tenant/v1/getTenantId', data)

// 登录接口
// export const login = data => post('/user/userLogin/v1/login', data, { headers: { hideNotify: true } })
export const login = data => post('/user/userLogin/v1/login', data)

// 注册
export const register = data => post('/user/userPlatform/v1/add', data)

// 修改密码
export const updatePwd = data => post('/user/userLogin/v1/updatePassword', data)

// 获取业主下属单位
export const getSubUnit = () => get('/user/userPlatform/v1/querySubUnit')
